<#import "../../layout.html" as c>
<#import "../../list_layout.html" as list>
        <#assign alertList = []/>
        <#assign alertList = alertList + ["在线问答列表默认显示系统全部留言，按留言时间顺序排列。可通过高级搜索通过分类项索引某分类内并进行回复。"]/>
        <@c.html title="Index">
        <@list.html title="在线问答" subTitle="在线问答" alertList=alertList permi="" addBtn=false searchHint="请输入提问用户名/提问用户手机号进行搜索">
    </@list.html>
    <!-- ================== 开始页面所需CSS引入 ================== -->
    <!-- 富文本编辑器 -->
    <link type="text/css" rel="stylesheet" href="${pluginsRoot}ueditor/themes/default/css/ueditor.css">
    <link type="text/css" rel="stylesheet" href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/WdatePicker.css" />
    <link type="text/css" rel="stylesheet" href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/default/datepicker.css" />
    <!-- ================== 开始页面所需CSS引入 ================== -->


    <@shiro.hasPermission name="sys:questios:reply">
    <input type="hidden" id="questiosReply" value="1"/>
    </@shiro.hasPermission>

    <!-- 开始回复模态窗口 -->
    <div class="modal fade" id="replyModal" tabindex="-1" role="dialog">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title"> 在线回复 <a class="btn btn-info btn-xs m-l-5" role="button" data-toggle="collapse" href="#OperationTipsEdit" aria-expanded="true" title="操作提示"><i class="fa fa-exclamation"></i> 提示 </a> </h4>
                </div>
                <div class="modal-body">
                    <ul class="collapse in text-info p-b-10 p-l-15" role="tabpanel" id="OperationTipsEdit">
                        <li>请根据表单提示信息正确输入。</li>
                    </ul>
                    <form class="form-horizontal form-bordered p-0" action="${adminRoot}questions/json/reply" id="replyForm" method="post" autocomplete="off" data-parsley-validate="true">
                        <input type="hidden" name="id" value="">
                        <div class="form-group">
                            <label class="control-label col-md-2 col-sm-3">提问用户名&nbsp;:</label>
                            <div class="col-md-9 col-sm-8">
                                <input type="text" id="userName" class="form-control"   autocomplete="off" data-tip="tooltip" data-placement="auto" readonly="true" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-md-2 col-sm-3"> 提问内容&nbsp;:</label>
                            <div class="col-md-9 col-sm-8">
                            <textarea id="contentQuestion"  class="col-md-12 col-sm-8"  readonly="true" >
                             </textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-md-2 col-sm-3"> 回复内容&nbsp;:</label>
                            <div class="col-md-9 col-sm-8">
                            <textarea id="contentReply"  class="col-md-12 col-sm-8" name="answer" data-parsley-required="true">
                            </textarea>
                            </div>
                        </div>
                    </form>
                    <!-- 结束设置模块-->
                </div>
                <div class="modal-footer"><a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a><a href="javascript:;" class="btn btn-success" data-loading-text="Loading..." nc-ajax-submit-target="replyForm" nc-ajax-submit>确认提交</a></div>
            </div>
        </div>
    </div>
    <!-- 结束回复模态窗口 -->



<!-- ================== 开始页面级JavaScrip调用 ================== -->
<!-- 表单checkbox项 -->
<script src="${pluginsRoot}bootstrap-switch/bootstrap-switch.min.js"></script>
<!-- 富文本编辑器 -->
<script src="${pluginsRoot}ueditor/ueditor.config.js"></script>
<script src="${pluginsRoot}ueditor/ueditor.all.js"></script>
<script src="${pluginsRoot}ueditor/lang/zh-cn/zh-cn.js"></script>
<!-- 时间控件 -->
<script src="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/WdatePicker.js" defer="defer"></script>

<script src="${jsRoot}operate/questions.handle.js"></script>
<!-- ================== 结束页面级JavaScrip调用 ================== -->
</@c.html>
